package com.zjw.common.exception.response;

/**
* @className OperationEnum
* @description 返回编码
* @author tlw
* @date 2019/8/7 7:56
* @version 1.0
**/
public enum ResponseEnum {
	/** 成功 */
	SUCCESS("0", "ok"),
	/** 系统错误 */
	SYS_ERROR("-1", "system error"),
	/** 登录超时 */
	LOGIN_TIMEOUT("10000000", "登录失效"),
	/** 权限异常 */
	AUTH_ERROR("-98", "unauthorized"),
	/** 业务异常 */
	SERVICE_ERROR("-2", "biz error"),
	/** 非法请求 */
	ILLEGAL_REQUEST ("-1", "illegal request"),
	/** 查无此资源 */
	NOT_FOUND_RESOURCE("-1","resource not found, check method, param or url"),
	/** 缺少参数 */
	MISS_PARAMS("10220001", "missed parameter"),
	/** 参数错误 */
	PARAMS_ERROR("10220002", "invalid param"),
	/** 价格广播-重复债券提示 */
	REPEAT_ERROR("9", "repeat error");


	private String val;
	private String msg;

	ResponseEnum(String value, String msg) {
		this.val = value;
		this.msg = msg;
	}

	public String val() {
		return val;
	}

	public String msg() {
		return msg;
	}
}